Skip to content

Conversation

timsueberkrueb
Copy link
Contributor

The generated identifiers in the IR seem non-deterministic between execution environments: one can observe different names locally vs on the CI.

This led to test failures in entirely unrelated PRs (#930, #923).

As this is blocking the other PRs, I propose the hotfix contained in this PR. I'm also open to better suggestions on how to write this particular test case or on how to fix the non-determinism.

@jiribenes
Copy link
Contributor

jiribenes commented May 7, 2025

I'm also open to better suggestions on how to write this particular test case or on how to fix the non-determinism.

A non-show-tree version of Core should be somewhat stable since we pretty-print it?

@marzipankaiser
Copy link
Contributor

Alternatively, we could also check modulo whitespace (i.e. replace all sequences of whitespace characters with ).
Sadly IIUC we get a String and not the Tree (where we would have infrastructure for renaming consistently and checking against that) 🤔

@timsueberkrueb
Copy link
Contributor Author

Alternatively, we could also check modulo whitespace

This is what I implemented now.

@timsueberkrueb timsueberkrueb merged commit ea43e27 into master May 7, 2025
2 checks passed
@timsueberkrueb timsueberkrueb deleted the fix-flaky-lsp-test branch May 7, 2025 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants